<?php

include realpath("../lib/smarty_lib/Smarty.class.php");

mb_internal_encoding("UTF-8");

$smarty = new Smarty();
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 0;

$smarty->setTemplateDir(realpath("../smarty/templates/"));
$smarty->setCompileDir(realpath("../smarty/templates_c/"));
$smarty->setConfigDir(realpath("../smarty/configs/"));
$smarty->setCacheDir(realpath("../smarty/cache/"));

function __autoload($class_name) {
    require_once "../class/$class_name.php";
}

?>
